package ink.charon.novel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 小说内容表(BookContent)表实体类
 *
 * @author Pluto
 * @since 2021-08-09 17:26:37
 */
@SuppressWarnings("serial")
@TableName("book_content")
public class BookContent extends Model<BookContent> {
    //主键
    @TableId(type = IdType.ID_WORKER)
    private Long id;
    //目录ID
    private Long indexId;
    //小说章节内容
    private String content;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getIndexId() {
        return indexId;
    }

    public void setIndexId(Long indexId) {
        this.indexId = indexId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
